weighted least-connection